package com.bjsxt.login.dao.impl;

import com.bjsxt.livegoods.pojo.LoginLog;
import com.bjsxt.login.dao.LogMongoDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;

/**
 * @ClassName : LogMongoDaoImpl
 * @Description :
 * @Author : ZWZ
 * @Date: 2021/8/27 11:08
 */
@Repository
public class LogMongoDaoImpl implements LogMongoDao {

    @Autowired
    private MongoTemplate mongoTemplate;

    @Override
    public void addLoginLog(LoginLog loginLog) {
        mongoTemplate.save(loginLog);
    }
}
